package com.weisiqian.study.springcloud.servicefeign.controller;

import com.weisiqian.study.springcloud.servicefeign.service.ServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private ServiceHi serviceHi;

    @RequestMapping("/hi")
    public String sayHi(String name){
        return this.serviceHi.sayHi(name);
    }

}
